package com.example.he.p0203_lifetestactivity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

public class P0203_LifeTestActivity extends AppCompatActivity {
    private static final String TAG="LifeTestActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
            setContentView(R.layout.p0203_lifetestactivity);
            Log.d(TAG, "执行了 onCreate()方法");
        }
        @Override
        protected void onStart() {
            super.onStart();
            Log.d(TAG, "执行了onStart()方法");
        }
        @Override
        protected void onResume() {
            super.onResume();
            Log.d(TAG, "执行了onResume()方法");
        }
        @Override
        protected void onStop() {
            super.onStop();
            Log.d(TAG, "执行了onStop()方法");
        }
        @Override
        protected void onPause() {
            super.onPause();
            Log.d(TAG, "执行了onPause()方法");
        }
        @Override
        protected void onRestart() {
            super.onRestart();
            Log.d(TAG, "执行了onRestart()方法");
        }
        @Override
        protected void onDestroy() {
            super.onDestroy();
            Log.d(TAG, "执行了onDestroy()方法");
        }
}
